<?php
/* 
 * 删除留言
 */
require 'dbcon.php';
$id=$_GET['id'];
$sql="delete from tb_staff where id={$id}";
$rs=$db->query($sql);//执行查询语句$sql，生成结果集$result
$db->close();//关闭数据库连接
if($rs){
    echo "<script> location.href='index.php' </script>";
}
else{
    echo "<script> alert('删除资料失败！');location.href='index.php' </script>";
}


